<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>bibao</title>
</head>
<script>
	function fun(n,o){
		console.log('n=%o, o=%o',n, o);
		return {
			fun: function(m){
				console.log('m=%o, n=%o', m, n);
				return fun(m,n);
			}
		}
	}

// 	var a = fun(0);
// 	console.log(a);
// 	a.fun(1);
// 	a.fun(2);
// 	a.fun(3);
// console.log(a);

	var b = fun(0);
	b.fun(1).fun(2);
	console.log(b);
	// b.fun(1).fun(2).fun(3);
	// console.log(fn2.name)
	// o.fn();

</script>
<style type="text/css">
	.i-search{ 
		height: 44px;
		border: 1px solid #ddd; 
		display: block;
		float: left;
		border-right: none;
		padding: 0;
		margin: 0;
		width: 50px;
	 }
	 .form-control {
	 	display: block;
		float: left;
	 	height: 44px;
	 	line-height: 44px;
	 	border: 1px solid #ddd;
	 	padding: 0;
	 	margin: 0;
	 }
	 .btn {
	 	width: 50px;
	 	display: inline-block;
	 	height: 46px;
	 	border: 1px solid #ddd;
	 	padding: 0;
	 	margin: 0;
	 }
</style>
<body>
	<div style="">
		<i class="i-search">dd</i><input type="text" class="form-control">
		<button class="btn btn-search">查询</button>
	</div>
</body>
</html>